<script lang="ts">
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import Vue from 'vue'

import { checkAuth, getUpdate } from '@/utils'

export default Vue.extend({
  mpType: 'app',
  async onLaunch() {
    wx.cloud.init()
    getUpdate()
  },
  async onShow(options?: AnyObject) {
    checkAuth(options.path)

    console.log({ ...options })
  },
  onHide() {
    console.log('App Hide')
  }
})
</script>

<style lang="scss">
@import 'uview-ui/index';
@import 'app';
</style>
